RtGetThreadPriority

RtGetThreadPriority returns the priority value for the specified thread.

In an RTSS environment, RTSS has no distinct priority classes and the priority value specified is the only determination of a thread's priority.

In a Win32 environment, the priority value, together with the priority class of the thread's process, determines the thread's base-priority level. All processes that attach to the Win32 RTAPI library are placed in the Win32 real-time priority class after a call to RtGetThreadPriority or RtSetThreadPriority.

Syntax

INT RtGetThreadPriority(
    HANDLE hThread
);

Parameters

hThread

The thread identifier.

Return Values

The thread priority level if the function succeeds, the THREAD_PRIORITY_ERROR_RETURN if the function fails

To get extended error information, call GetLastError.

Remarks

For more information on the scheduling environment, read the section on Thread Priorities.

Requirements

Header Rtapi.h
Library Rtx_Rtss.lib

See Also:

GetThreadPriority

RtSetThreadPriority

SetThreadPriority

IntervalZero.com | Support | Give Feedback